package cn.controller;

import cn.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wsx on 2017/2/1.
 */
@Controller
public class EmailController {

    @Autowired
    private EmailService emailService;

    @RequestMapping(value = "/email",method = RequestMethod.GET)
    public String test(){
        emailService.Send("860223178@qq.com","测试标题","测试内容");
        return "email";
    }
}
